<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/3/12
 * Time: 16:29
 */

echo "<title>7-7 关联数组初始化</title>";
echo "<p style='text-align: center'><a href=\"index.php\"><font size=\"4\">目录</font></a></p>";
header("Content-type: text/html; charset=utf-8");
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";

//创建一个关联数组，关联数组的键“orange”，值是“橘子”
$fruit = array(
    'apple'=>'苹果',
    'banana'=>'香蕉',
    'pineapple'=>'菠萝',
    'orange'=>'橘子'
);
print_r($fruit);

//在右侧第3行创建一个关联数组，关联数组的键是“orange”，值是“橘子”。


















